package cn.itsource.ymcc.openfeign;


import cn.itsource.ymcc.common.result.JsonResult;
import cn.itsource.ymcc.openfeign.fallback.UserFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-user",fallbackFactory = UserFeignClientFallbackFactory.class)
public interface UserFeignClient {
    @GetMapping("/user/login/{id}")
    public JsonResult loginId(@PathVariable("id")Long loginId);
}
